package com.yc.mybatis.students.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 该表用于存储学生的基本信息，通过外键关联专业表来明确专业归属
 * </p>
 *
 * @author k
 * @since 2024-12-08
 */
@Getter
@Setter
@TableName("students")
public class Students implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "student_id", type = IdType.AUTO)
    private Integer studentId;

    @TableField("student_name")
    private String studentName;

    @TableField("student_age")
    private Integer studentAge;

    @TableField("student_gender")
    private String studentGender;

    @TableField("major_id")
    private Integer majorId;
}
